package org.example.controller;

import org.example.feign.FeignService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author TonySong
 * @date 2024/6/25 0025
 * @time 20:57
 */
@RestController
public class HelloController {

    @Value("${server.port}")
    private Integer port;
    @Resource
    private FeignService feignService;

    @GetMapping("/hello")
    public String hello(){
        return "端口："+ this.port+ this.feignService.hello();
    }
}
